import request from "@utils/request";

export function videoCategory(){
    return request({
        url: "/api/video/itemlist",
        method: "get"
    })
}

export function videoList(id, page){
    return request({
        url: "/api/video/getVideoList",
        method: "get",
        params:{id, page}
    })
}

export function videoDetail(id){
    return request({
        url: "/api/video/getVideoInfo",
        method: "get",
        params:{id}
    })
}

export function hotVideoList(page){
    return request({
        url: "/api/video/getHotLists",
        method: "get",
        params: {
            page
        }
    })
}

export function getPlayerDetail(id) {
    return request({
        url: "/api/video/getPlayurl",
        method: "get",
        params: {
            id
        },
        notErrorMsg: true
    })
}
